package com.youjia.service;

import com.youjia.mapper.LogMapper;
import com.youjia.pojo.Logs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private LogMapper logMapper;

    @Override
    public void insert(Map<String, Object> map) {
        Logs logs=new Logs();
        logs.setLgName(map.get("Name").toString());
        logs.setLgDescribe(map.get("des").toString());
        logMapper.insert(logs);
    }
}
